.color-primary {
  color: var(--primary-color);
}

.color-success {
  color: var(--success-color);
}

.color-info {
  color: var(--info-color);
}

.color-warning {
  color: var(--warning-color);
}

.color-error {
  color: var(--error-color);
}

.color-disabled {
  color: var(--disabled-color);
}

.color-text {
  color: var(--text-color);
}

.color-text-secondary {
  color: var(--text-color-secondary);
}

.color-text-tertiary {
  color: var(--text-color-tertiary);
}

.color-gray {
  color: #b2afaf;
}

.color-inherit {
  color: inherit;
}

.bg-primary {
  background-color: var(--primary-color);
}

.bg-blue {
  background-color: #3a70db;
}

.bg-red {
  background-color: #f05209;
}

.bg-success {
  background-color: var(--success-color);
}

.bg-info {
  background-color: var(--info-color);
}

.bg-warning {
  background-color: var(--warning-color);
}

.bg-danger {
  background-color: var(--error-color);
}

.bg-white {
  background-color: #fff;
}

.thin-scrollbar {
  &::-webkit-scrollbar {
    width: 4px;
    height: 4px;
    background-color: #f8f8f8;
  }
}

@gap-values: 0, 3, 5, 8, 10, 12, 15, 16, 20, 24, 25, 30, 32, 35, 40, 45, 48, 50, 64;

each(@gap-values, {
  .m-@{value} {
    margin: @value * 1px;
  }
});
each(@gap-values, {
  .ml-@{value} {
    margin-left: @value * 1px;
  }
});

each(@gap-values, {
  .mr-@{value} {
    margin-right: @value * 1px;
  }
});
each(@gap-values, {
  .mt-@{value} {
    margin-top: @value * 1px;
  }
});
each(@gap-values, {
  .mb-@{value} {
    margin-bottom: @value * 1px;
  }
});
each(@gap-values, {
  .mh-@{value} {
    margin-left: @value * 1px;
    margin-right: @value * 1px;
  }
});
each(@gap-values, {
  .mv-@{value} {
    margin-top: @value * 1px;
    margin-bottom: @value * 1px;
  }
});

each(@gap-values, {
  .p-@{value} {
    padding: @value * 1px;
  }
});
each(@gap-values, {
  .pl-@{value} {
    padding-left: @value * 1px;
  }
});

each(@gap-values, {
  .pr-@{value} {
    padding-right: @value * 1px;
  }
});
each(@gap-values, {
  .pt-@{value} {
    padding-top: @value * 1px;
  }
});
each(@gap-values, {
  .pb-@{value} {
    padding-bottom: @value * 1px;
  }
});
each(@gap-values, {
  .ph-@{value} {
    padding-left: @value * 1px;
    padding-right: @value * 1px;
  }
});
each(@gap-values, {
  .pv-@{value} {
    padding-top: @value * 1px;
    padding-bottom: @value * 1px;
  }
});

@grid-gap-values: 0, 3, 5, 8, 10, 12, 16, 20, 24, 32, 40, 48, 56, 64, 80, 96;
each(@grid-gap-values, {
  .grid-gap-@{value} {
    grid-gap: @value * 1px;
  }
});
each(@grid-gap-values, {
  .row-gap-@{value} {
    row-gap: @value * 1px;
  }
});
each(@grid-gap-values, {
  .col-gap-@{value} {
    column-gap: @value * 1px;
  }
});
@grid-span-values: 2, 3, 4, 5, 6, 7, 8, 9, 10;
each(@grid-span-values, {
  .grid-row-span-@{value} {
    grid-row: span @value;
  }
});
each(@grid-span-values, {
  .grid-col-span-@{value} {
    grid-column: span @value;
  }
});

.p0 {
  padding: 0 !important;
}

.m0 {
  margin: 0 !important;
}

.mh-auto {
  margin: 0 auto;
}

.full {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.full-oh,
.full-view {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.full-width {
  width: 100%;
}

.full-height {
  height: 100%;
}

.full-autoscroll {
  height: 100%;
  flex: 1;
  overflow: auto;
}

.overflow-x-hide {
  width: 100%;
  overflow-x: hidden;
}

.overflow-auto {
  overflow: auto;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-overlay {
  overflow: auto;
  overflow: overlay;
}

.weight,
.bold {
  font-weight: bold;
}

.flex {
  display: flex;
}

.flex-dc {
  flex-direction: column;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.flex-sb {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-fs {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.flex-fe {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* 这个样式配合grid布局使用,让占满剩余高度的行不被子元素撑高 */
.flex-auto {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: auto;
}

.iflex-sb {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
}

.iflex-fs {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}

.iflex-fe {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}

.flex-1 {
  flex: 1;
}

.iflex {
  display: inline-flex;
}

.aic {
  align-items: center;
}

.jcc {
  justify-content: center;
}

.jc-fe {
  justify-content: flex-end;
}

.flex-wrap {
  flex-wrap: wrap;
}

.child-no-shrink {
  > * {
    flex-shrink: 0;
  }
}

.shrink-item {
  flex-shrink: 1;
}

.no-shrink {
  flex-shrink: 0;
}

.child-flex-1 > * {
  flex: 1;
}

.child-ml-10 {
  > * + * {
    margin-left: 10px;
  }
}

.child-ml-20 {
  > * + * {
    margin-left: 20px;
  }
}

fieldset {
  border: 1px solid #ccc;
  border-radius: 3px;
}

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

.border-box {
  box-sizing: border-box;
}

.shadow-box {
  box-shadow: var(--box-shadow);
}

.curp {
  cursor: pointer;
}

.link {
  cursor: pointer;

  &:hover {
    color: var(--primary-color);
  }
}

.underline {
  text-decoration: underline;
}

.hover-underline:hover {
  text-decoration: underline;
  cursor: pointer;
}

@font-sizes: 12, 13, 14, 15, 16, 18, 20, 22, 24, 26;
each(@font-sizes, {
  .font-@{value} {
    font-size: @value * 1px;
  }
});

.image-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  > img {
    margin-right: 5px;
  }
}

.hide {
  display: none !important;
}

.block {
  display: block;
}

.iblock {
  display: inline-block;
}

.abs-fill {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}

.borderless {
  border: none !important;
  border-inline: none !important;
}

.border {
  border: 1px solid var(--border-color);
}

.border-red {
  border: 1px solid red;
}

.border-dashed {
  border: 1px dashed var(--border-color);
}

.border-left {
  border-left: 1px solid var(--border-color);
}

.border-right {
  border-right: 1px solid var(--border-color);
}

.border-top {
  border-top: 1px solid var(--border-color);
}

.border-top-first:first-child {
  border-top: 1px solid var(--border-color);
}

.border-bottom {
  border-bottom: 1px solid var(--border-color);
}

.border-bottom-last:last-child {
  border-bottom: 1px solid var(--border-color);
}

.border-radius {
  border-radius: var(--border-radius);
}

.box-shadow {
  box-shadow: var(--box-shadow);
}

.simple-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);

  caption {
    caption-side: top;
  }

  th,
  td {
    box-sizing: border-box;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    padding: 3px 8px;
    min-height: 26px;
  }

  tr:hover {
    td {
      background-color: var(--primary-color-1);
    }
  }
}

.table-centered {
  th,
  td {
    text-align: center !important;
  }
}

.cell-checkbox {
  label {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }
}

.disabled {
  color: var(--disabled-color);
  cursor: default;
}

@width-values: 0, 20, 25, 30, 35, 40, 50, 60, 80, 100, 110, 120, 130, 150, 180, 196, 200, 220, 240, 260, 280, 300, 350, 400, 450, 500, 550, 600, 700, 800, 900, 1000;
each(@width-values, {
  .w-@{value} {
    width: @value * 1px;
  }
});

.w-full {
  width: 100%;
}

.mw-full {
  max-width: 100%;
}

@height-values: 0, 20, 25, 30, 35, 40, 50, 60, 80, 100, 110, 120, 130, 150, 180, 196, 200, 220, 240, 260, 280, 300, 350, 400, 450, 500;
each(@height-values, {
  .h-@{value} {
    height: @value * 1px;
  }
});

.h-full {
  height: 100%;
}

.maxh-full {
  max-height: 100%;
}

.size-0 {
  width: 0;
  height: 0;
}

.opacity-50 {
  opacity: 0.5;
}

.select-none {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.ant-tabs-full {
  height: 100%;

  .ant-tabs-content {
    height: 100%;
  }
}

.position-relative {
  position: relative;
}

.position-absolute {
  position: absolute;
}

.position-fixed {
  position: fixed;
}

.vue-devtools__panel,
.vue-devtools-frame {
  -webkit-app-region: no-drag;
}
